package com.xr.blackhoole.autoconfigurer.mvc;

import com.xr.blackhoole.mvc.configuration.BlackMVCConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.DispatcherServlet;

@Configuration
@ConditionalOnClass(org.springframework.web.servlet.DispatcherServlet.class)
public class BlackholeMVCAutoConfiguration {
    
    @ConditionalOnClass
    @Bean
    public BlackMVCConfiguration blackMVCConfiguration(){
        return new BlackMVCConfiguration();
    }
}
